@mixin clearfix {
  &::after {
    content: "";
    display: table;
    clear: both;
  }
}

@mixin scrollBar {
  /* 设置滚动条的样式 */
  &::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }

  /* 滚动槽 */
  &::-webkit-scrollbar-track {
    border-radius: 10px;
  }

  &::-webkit-scrollbar-thumb {
    background: lighten(#4186ff, .2);
    border-radius: 10px;
    border-style: dashed;
    border-color: transparent;
    border-width: 1.5px;
    background-clip: padding-box;

  }
  &::-webkit-scrollbar-thumb:hover {
    background: darken(#4186ff, .2);
  }
}

@mixin relative {
  position: relative;
  width: 100%;
  height: 100%;
}

@mixin mg($size) {
  margin-bottom: $size;
}

@mixin ellipse($px) {
  max-width: $px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
